import request from '@/utils/request'

// 产品关联列表
export const flashProductRelationList = (params) => {
    return request({
        url: '/flashProductRelation/list',
        method: 'get',
        params: params
    })
}

// 创建
export const createFlashProductRelation = (data) => {
    return request({
        url: '/flashProductRelation/create',
        method: 'post',
        data: data
    })
}

// 删除
export const deleteFlashProductRelation = (id) => {
    return request({
        url: '/flashProductRelation/delete/' + id,
        method: 'post'
    })
}

// 更新
export const updateFlashProductRelation = (id, data) => {
    return request({
        url: '/flashProductRelation/update/' + id,
        method: 'post',
        data: data
    })
}



